
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <title>IconFont</title>
    <link rel="stylesheet" href="demo.css">
    <script src="iconfont.js"></script>

    <style type="text/css">
        .icon {
          /* 通过设置 font-size 来改变图标大小 */
          width: 1em; height: 1em;
          /* 图标和文字相邻时，垂直对齐 */
          vertical-align: -0.15em;
          /* 通过设置 color 来改变 SVG 的颜色/fill */
          fill: currentColor;
          /* path 和 stroke 溢出 viewBox 部分在 IE 下会显示
             normalize.css 中也包含这行 */
          overflow: hidden;
        }

    </style>
</head>
<body>
    <div class="main markdown">
        <h1>IconFont 图标</h1>
        <ul class="icon_lists clear">
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-bofanggaikuang"></use>
                    </svg>
                    <div class="name">bofanggaikuang</div>
                    <div class="fontclass">#icon-bofanggaikuang</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-bokongguanli"></use>
                    </svg>
                    <div class="name">bokongguanli</div>
                    <div class="fontclass">#icon-bokongguanli</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-bokongfangan"></use>
                    </svg>
                    <div class="name">bokongfangan</div>
                    <div class="fontclass">#icon-bokongfangan</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-caidan"></use>
                    </svg>
                    <div class="name">caidan</div>
                    <div class="fontclass">#icon-caidan</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-CP"></use>
                    </svg>
                    <div class="name">CP</div>
                    <div class="fontclass">#icon-CP</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-CPgaikuang"></use>
                    </svg>
                    <div class="name">CPgaikuang</div>
                    <div class="fontclass">#icon-CPgaikuang</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-CPbofang"></use>
                    </svg>
                    <div class="name">CPbofang</div>
                    <div class="fontclass">#icon-CPbofang</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-CPshenhe"></use>
                    </svg>
                    <div class="name">CPshenhe</div>
                    <div class="fontclass">#icon-CPshenhe</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-CPjiesuan"></use>
                    </svg>
                    <div class="name">CPjiesuan</div>
                    <div class="fontclass">#icon-CPjiesuan</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-cuowutishi"></use>
                    </svg>
                    <div class="name">cuowutishi</div>
                    <div class="fontclass">#icon-cuowutishi</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-erjipindao"></use>
                    </svg>
                    <div class="name">erjipindao</div>
                    <div class="fontclass">#icon-erjipindao</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-gaikuang"></use>
                    </svg>
                    <div class="name">gaikuang</div>
                    <div class="fontclass">#icon-gaikuang</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-CPxinzeng"></use>
                    </svg>
                    <div class="name">CPxinzeng</div>
                    <div class="fontclass">#icon-CPxinzeng</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-gonggaoguanli"></use>
                    </svg>
                    <div class="name">gonggaoguanli</div>
                    <div class="fontclass">#icon-gonggaoguanli</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-guanjiancibiaoqian"></use>
                    </svg>
                    <div class="name">guanjiancibiaoqian</div>
                    <div class="fontclass">#icon-guanjiancibiaoqian</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-heyueguanli"></use>
                    </svg>
                    <div class="name">heyueguanli</div>
                    <div class="fontclass">#icon-heyueguanli</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-jiemubofang"></use>
                    </svg>
                    <div class="name">jiemubofang</div>
                    <div class="fontclass">#icon-jiemubofang</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-jueseguanli"></use>
                    </svg>
                    <div class="name">jueseguanli</div>
                    <div class="fontclass">#icon-jueseguanli</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-qudaoguanli"></use>
                    </svg>
                    <div class="name">qudaoguanli</div>
                    <div class="fontclass">#icon-qudaoguanli</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-pindaoguanli"></use>
                    </svg>
                    <div class="name">pindaoguanli</div>
                    <div class="fontclass">#icon-pindaoguanli</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-shanchu"></use>
                    </svg>
                    <div class="name">shanchu</div>
                    <div class="fontclass">#icon-shanchu</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-qudaobofang"></use>
                    </svg>
                    <div class="name">qudaobofang</div>
                    <div class="fontclass">#icon-qudaobofang</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-sousuo"></use>
                    </svg>
                    <div class="name">sousuo</div>
                    <div class="fontclass">#icon-sousuo</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-tongyongbiaoqian"></use>
                    </svg>
                    <div class="name">tongyongbiaoqian</div>
                    <div class="fontclass">#icon-tongyongbiaoqian</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-tianjia"></use>
                    </svg>
                    <div class="name">tianjia</div>
                    <div class="fontclass">#icon-tianjia</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-xiazai"></use>
                    </svg>
                    <div class="name">xiazai</div>
                    <div class="fontclass">#icon-xiazai</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-xitongrizhi"></use>
                    </svg>
                    <div class="name">xitongrizhi</div>
                    <div class="fontclass">#icon-xitongrizhi</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-tongzhiguanli"></use>
                    </svg>
                    <div class="name">tongzhiguanli</div>
                    <div class="fontclass">#icon-tongzhiguanli</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-xiugaimima"></use>
                    </svg>
                    <div class="name">xiugaimima</div>
                    <div class="fontclass">#icon-xiugaimima</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-xuanzeshijian"></use>
                    </svg>
                    <div class="name">xuanzeshijian</div>
                    <div class="fontclass">#icon-xuanzeshijian</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-yonghuguanli"></use>
                    </svg>
                    <div class="name">yonghuguanli</div>
                    <div class="fontclass">#icon-yonghuguanli</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-yijipindao"></use>
                    </svg>
                    <div class="name">yijipindao</div>
                    <div class="fontclass">#icon-yijipindao</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zhediecaidan"></use>
                    </svg>
                    <div class="name">zhediecaidan</div>
                    <div class="fontclass">#icon-zhediecaidan</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zhuanjibofang"></use>
                    </svg>
                    <div class="name">zhuanjibofang</div>
                    <div class="fontclass">#icon-zhuanjibofang</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zhuanjishenhe"></use>
                    </svg>
                    <div class="name">zhuanjishenhe</div>
                    <div class="fontclass">#icon-zhuanjishenhe</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zhuanjigaikuang"></use>
                    </svg>
                    <div class="name">zhuanjigaikuang</div>
                    <div class="fontclass">#icon-zhuanjigaikuang</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zhuanmaguanli"></use>
                    </svg>
                    <div class="name">zhuanmaguanli</div>
                    <div class="fontclass">#icon-zhuanmaguanli</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zhuanjixinzeng"></use>
                    </svg>
                    <div class="name">zhuanjixinzeng</div>
                    <div class="fontclass">#icon-zhuanjixinzeng</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zhuanyongbiaoqian"></use>
                    </svg>
                    <div class="name">zhuanyongbiaoqian</div>
                    <div class="fontclass">#icon-zhuanyongbiaoqian</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zhengquetishi"></use>
                    </svg>
                    <div class="name">zhengquetishi</div>
                    <div class="fontclass">#icon-zhengquetishi</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-jiemugaikuang"></use>
                    </svg>
                    <div class="name">jiemugaikuang</div>
                    <div class="fontclass">#icon-jiemugaikuang</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-jiemuxinzeneg"></use>
                    </svg>
                    <div class="name">jiemuxinzeneg</div>
                    <div class="fontclass">#icon-jiemuxinzeneg</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-jiemushenhe"></use>
                    </svg>
                    <div class="name">jiemushenhe</div>
                    <div class="fontclass">#icon-jiemushenhe</div>
                </li>
            
        </ul>


        <h2 id="symbol-">symbol引用</h2>
        <hr>

        <p>这是一种全新的使用方式，应该说这才是未来的主流，也是平台目前推荐的用法。相关介绍可以参考这篇<a href="">文章</a>
        这种用法其实是做了一个svg的集合，与另外两种相比具有如下特点：</p>
        <ul>
          <li>支持多色图标了，不再受单色限制。</li>
          <li>通过一些技巧，支持像字体那样，通过<code>font-size</code>,<code>color</code>来调整样式。</li>
          <li>兼容性较差，支持 ie9+,及现代浏览器。</li>
          <li>浏览器渲染svg的性能一般，还不如png。</li>
        </ul>
        <p>使用步骤如下：</p>
        <h3 id="-symbol-">第一步：引入项目下面生成的symbol代码：</h3>
        <pre><code class="lang-js hljs javascript"><span class="hljs-comment">&lt;script src="./iconfont.js"&gt;&lt;/script&gt;</span></code></pre>
        <h3 id="-css-">第二步：加入通用css代码（引入一次就行）：</h3>
        <pre><code class="lang-js hljs javascript">&lt;style type=<span class="hljs-string">"text/css"</span>&gt;
.icon {
   width: <span class="hljs-number">1</span>em; height: <span class="hljs-number">1</span>em;
   vertical-align: <span class="hljs-number">-0.15</span>em;
   fill: currentColor;
   overflow: hidden;
}
&lt;<span class="hljs-regexp">/style&gt;</span></code></pre>
        <h3 id="-">第三步：挑选相应图标并获取类名，应用于页面：</h3>
        <pre><code class="lang-js hljs javascript">&lt;svg <span class="hljs-class"><span class="hljs-keyword">class</span></span>=<span class="hljs-string">"icon"</span> aria-hidden=<span class="hljs-string">"true"</span>&gt;<span class="xml"><span class="hljs-tag">
  &lt;<span class="hljs-name">use</span> <span class="hljs-attr">xlink:href</span>=<span class="hljs-string">"#icon-xxx"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">use</span>&gt;</span>
</span>&lt;<span class="hljs-regexp">/svg&gt;
        </span></code></pre>
    </div>
</body>
</html>
